<include file="__PUBLIC__/head.php">
<title>文章列表</title>
<body class="bgwhite-1">
	<div class="Menu">
		<a href="{|U:'index'}" class="act"><i class="icon-comment mr3 gray"></i>文章管理</a>
		<a href="{|U:'add'}"><i class="icon-plus mr3 gray"></i>添加文章</a>
		<a href="{|U:'updateCache'}" class="ajax" actUrl="{|U('index')}"><i class="icon-refresh mr3 gray"></i>更新缓存</a>
	</div>
	<div class="p10">
		<table class="table">
			<tr class=' white fm f14'>
				<th class="pct5 tsblack tc">Aid</th>
				<th class="pct5 tsblack">图</th>
				<th class="pct40 tsblack">文章标题</th>
				<th class="pcd10 tsblack">类别</th>
				<th class="pct10 tsblack">属性</th>
				<th class="pct30 tsblack tc">操作</th>
			</tr>
			<list from="$article" name="a">
				<tr>
					<td class='tc'><span class="b gray2">{$a.aid}</span></td>
					<td class='tc'>
						<if value="$a.medium">
							<div class="showPic">
								<img height="30" src="__ROOT__/{$a.medium}" />
							</div>
						<else/>
							<span class="gray2">Noimg</span>
						</if>
					</td>
					<td class='tl'>
						{$a.title}
						<if value="{$a.big}">
							<if value="!$a.slide">
							<span class="bgblue2 white p2 pl5 pr5 rad5">活动轮播</span>
							<else/>
							<span class="bgmaroon2 white p2 pl5 pr5 rad5">首页轮播</span>
							</if>
						</if>
					</td>
					<td class='tc'>{$a.cname}</td>
					<td class='tc'>{$a.flag}</td>
					
					<td class='tc'>
						<a href="{|U:'edit?aid='}{$a.aid}" class="a bgwhite green bdd p5 mr5"><i class="icon-edit icon-border mr3 icon-large "></i>改</a>
						<a href="{|U:'del?aid='}{$a.aid}" onclick='return del();' class="a bgwhite dels red bdd p5 mr5"><i class="icon-trash icon-border mr3 icon-large "></i>删</a>
						<a href="{|U:'Comment/index?aid='}{$a.aid}" onclick='return del();' class="a bgwhite teal bdd p5 mr5"><i class="icon-comment-alt icon-border mr3 icon-large "></i><b class="fm">{$a.comments}</b> 评</a>
					</td>
				</tr>
			</list>
		</table>
		<div class="page mt10">{$page}</div>
	</div>
</body>
</html>